﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Dcms.BLL;
using Dcms.Model;

/// <summary>
/// PublicFunction 的摘要说明
/// </summary>
public static class PublicFunction
{
    public static int GetModelKeyID(int intPermissionID)
    {
        int intRef = -1;
        try
        {
            Dcms_PermissionBLL pBll = new Dcms_PermissionBLL();
            Dcms_PermissionModel pModel = pBll.GetModelByID(intPermissionID);
            intRef = pModel.Permission_ModelKeyId;
        }
        catch
        {}
        return intRef;
    }
}